function Category(id, name, parent) {

	this.id = id;
	this.name = name;
	this.parent = parent;
	this.parentId = (parent == null? null: parent.id);

	this.fullName = function() {
		var fullname = this.name;
		if(this.parentId != null) {
			fullname = this.parent.fullName() + ' > ' + fullname;
		}
		return fullname;
	};

	this.isRoot = function () {
		return !(this.parentId > 0);
	}
};